import API from '@/shared/http/api';
import {
    GET_HOME_MENU
} from './create';

export const getHomeMenus = () => {
    return async (dispatch, getState) => {
        let result = await API.getHomeMenus();
        dispatch({
            type: GET_HOME_MENU,
            menus: result.data
        })
        return result;
    }
}